package com.cjkj.equipment.service.impl;

import com.cjkj.equipment.mapper.PatientSleepStageRecordTempMapper;
import com.cjkj.equipment.service.PatientSleepStageRecordService;
import com.cjkj.system.api.domain.PatientSleepStageRecord;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

/**
 *
 */
@Service
public class PatientSleepStageRecordServiceImpl implements PatientSleepStageRecordService {

    @Resource
    private PatientSleepStageRecordTempMapper recordMapper;

    @Override
    public void insertRecord(PatientSleepStageRecord record) {
        recordMapper.insertPatientSleepStageRecordTemp(record);
    }

    @Override
    public List<PatientSleepStageRecord> listRecords(String equipmentNo, Date startTime, Date endTime) {
        return recordMapper.listRecords(equipmentNo,startTime,endTime);
    }
}




